////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   COMPANY
// AUTHOR           :   Victor Zheng 
// DATE CREATE      :   2006/02/01
// DESCRIPTION      :   a VO file for the function, COMPANY
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/02/01   Victor Zheng    1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.admin.companySetup.vo;

import java.sql.Timestamp;

import com.erp.app.admin.companySetup.pk.CompanyPk;
import com.erp.framework.model.pk.SimpleSearchMaintStylePk;
import com.erp.framework.model.vo.SimpleSearchMaintStyleVo;
import com.erp.framework.types.CustomBigInteger;

/**
* <p>A <strong>VO</strong>(Value Object) is a JavaBean which provides property
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this class is to store the data retrieved from the database,
* and the converted data from the web browsers.
*
* @author          Victor Zheng 
* @version 1.0     2006/02/01
* @since           FrameWork 1.0
*
*/
public class CompanyVo extends SimpleSearchMaintStyleVo {

	//DB Table Name: T_COMPANY

	//PK Attributes
	private String companyCode;                      //DB Column Name: COMPANY_CODE

	//Other Attributes
	private String shortName;                        //DB Column Name: SHORT_NAME
	private String longName;                         //DB Column Name: LONG_NAME
	private String addr1;                            //DB Column Name: ADDR1
	private String addr2;                            //DB Column Name: ADDR2
	private String addr3;                            //DB Column Name: ADDR3
	private String country;                          //DB Column Name: COUNTRY
	private String phone;                            //DB Column Name: PHONE
	private String fax;                              //DB Column Name: FAX
	private String ccy;                              //DB Column Name: CCY
	private String baseCcy;                          //DB Column Name: BASE_CCY
	private String contentType;                      //DB Column Name: CONTENT_TYPE
	private byte[] companyLogo;                      //DB Column Name: COMPANY_LOGO
	private String createUser;                       //DB Column Name: CREATE_USER
	private Timestamp createDate;                    //DB Column Name: CREATE_DATE
	private String updateUser;                       //DB Column Name: UPDATE_USER
	private Timestamp updateDate;                    //DB Column Name: UPDATE_DATE
	private String addr4;                            //DB Column Name: ADDR4
	private String ledgerCode;                       //DB Column Name: LEDGER_CODE
	private String postalCode;                       //DB Column Name: POSTAL_CODE
	private CustomBigInteger privacyCode;            //DB Column Name: PRIVACY_CODE
	private String printFormFont;                    //DB Column Name: PRINT_FORM_FONT
	private String phoneArea;
	private String phoneCountry;
	private String faxArea;
	private String faxCountry;

	/**
	* Stores the detail child names by the fully-qualified java class path.
	*
	* @author     Victor Zheng 
	* @since      FrameWork 1.0
	*/
	protected  void setChildTypesName() {
		//this.childTypesName=new String[2];
		//this.childTypesName[0]="com.erp.app.form.beans.FormApprovalListVo";
		//this.childTypesName[1]="com.erp.app.form.beans.FormAttachmentVo";
	}

	/**
	* Stores the table schema name by the fully-qualified java class path.
	*
	* @author     Victor Zheng 
	* @since      FrameWork 1.0
	*/
	protected void setTableSchemaName() {
		this.tableSchemaName="com.erp.app.admin.companySetup.schema.CompanySchema";
	}

	/**
	* Stores the detail child table schema names by the fully-qualified java class path.
	*
	* @author     Victor Zheng 
	* @since      FrameWork 1.0
	*/
	protected  void setChildTableSchemaNames() {
		//this.childTableSchemaNames=new String[2];
		//this.childTableSchemaNames[0]="com.erp.app.form.beans.FormApprovalListSchema";
		//this.childTableSchemaNames[1]="com.erp.app.form.beans.FormAttachmentSchema";
	}

	/**
	* Stores the DAO name by the fully-qualified java class path.
	*
	* @author     Victor Zheng 
	* @since      FrameWork 1.0
	*/
	protected void setDaoName() {
		this.daoName="com.erp.app.admin.companySetup.dao.CompanyDao";
	}

	/**
	* Stores the biz logic name by the fully-qualified java class path.
	*
	* @author     Victor Zheng 
	* @since      FrameWork 1.0
	*/
	protected void setBizLogicName() {
		this.bizLogicName = "com.erp.app.admin.companySetup.bizLogic.CompanyBizLogic";
	}

	/**
	* Returns the primary key for this class.
	* @return      primary key of this class
	*
	* @author     Victor Zheng 
	* @since      FrameWork 1.0
	*/
	public SimpleSearchMaintStylePk getSearchMaintStylePk() {
		return new CompanyPk(this.companyCode);
	}

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Victor Zheng 
	* @since      FrameWork 1.0
	*/
	public String toString() {
		String pkStr = "PK: {companyCode = " + this.companyCode + "}\n";

		String colStr = "COL: {shortName = " + this.shortName
			+ "\n, longName = " + this.longName
			+ "\n, addr1 = " + this.addr1
			+ "\n, addr2 = " + this.addr2
			+ "\n, addr3 = " + this.addr3
			+ "\n, country = " + this.country
			+ "\n, phone = " + this.phone
			+ "\n, fax = " + this.fax
			+ "\n, ccy = " + this.ccy
			+ "\n, baseCcy = " + this.baseCcy
			+ "\n, contentType = " + this.contentType
			+ "\n, createUser = " + this.createUser
			+ "\n, createDate = " + this.createDate
			+ "\n, updateUser = " + this.updateUser
			+ "\n, updateDate = " + this.updateDate
			+ "\n, addr4 = " + this.addr4
			+ "\n, ledgerCode = " + this.ledgerCode
			+ "\n, postalCode = " + this.postalCode
			+ "\n, privacyCode = " + this.privacyCode
			+ "\n, printFormFont = " + this.printFormFont + "}\n";

		return "CompanyVo.toString() is:\n" + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////

	public String getCompanyCode() {
		return this.companyCode;
	}

	public String getShortName() {
		return this.shortName;
	}

	public String getLongName() {
		return this.longName;
	}

	public String getAddr1() {
		return this.addr1;
	}

	public String getAddr2() {
		return this.addr2;
	}

	public String getAddr3() {
		return this.addr3;
	}

	public String getCountry() {
		return this.country;
	}

	public String getPhone() {
		return this.phone;
	}

	public String getFax() {
		return this.fax;
	}

	public String getCcy() {
		return this.ccy;
	}

	public String getBaseCcy() {
		return this.baseCcy;
	}

	public String getContentType() {
		return this.contentType;
	}

	public byte[] getCompanyLogo() {
		return this.companyLogo;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public Timestamp getUpdateDate() {
		return this.updateDate;
	}

	public String getAddr4() {
		return this.addr4;
	}

	public String getLedgerCode() {
		return this.ledgerCode;
	}

	public String getPostalCode() {
		return this.postalCode;
	}

	public CustomBigInteger getPrivacyCode() {
		return this.privacyCode;
	}

	public String getPrintFormFont() {
		return this.printFormFont;
	}
	
	public String getPhoneArea() { return phoneArea; }
	
	public String getPhoneCountry() { return phoneCountry; }
	
	public String getFaxArea() { return faxArea; }
	
	public String getFaxCountry() { return faxCountry; }

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public void setLongName(String longName) {
		this.longName = longName;
	}

	public void setAddr1(String addr1) {
		this.addr1 = addr1;
	}

	public void setAddr2(String addr2) {
		this.addr2 = addr2;
	}

	public void setAddr3(String addr3) {
		this.addr3 = addr3;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public void setCcy(String ccy) {
		this.ccy = ccy;
	}

	public void setBaseCcy(String baseCcy) {
		this.baseCcy = baseCcy;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public void setCompanyLogo(byte[] companyLogo) {
		this.companyLogo = companyLogo;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public void setUpdateDate(Timestamp updateDate) {
		this.updateDate = updateDate;
	}

	public void setAddr4(String addr4) {
		this.addr4 = addr4;
	}

	public void setLedgerCode(String ledgerCode) {
		this.ledgerCode = ledgerCode;
	}

	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}

	public void setPrivacyCode(CustomBigInteger privacyCode) {
		this.privacyCode = privacyCode;
	}

	public void setPrintFormFont(String printFormFont) {
		this.printFormFont = printFormFont;
	}

	public void setPhoneArea(String phoneArea) { this.phoneArea = phoneArea; }
	public void setPhoneCountry(String phoneCountry) { this.phoneCountry = phoneCountry; }
	
	public void setFaxArea(String faxArea) { this.faxArea = faxArea; }
	public void setFaxCountry(String faxCountry) { this.faxCountry = faxCountry; }
	
	////////////////////////////////////////////////////////////////////////////////
	//Other Accessors (get/set methods)
	////////////////////////////////////////////////////////////////////////////////


}